package com.cms.action;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import com.cms.staticpage.StaticPageSvc;

import freemarker.template.TemplateException;

@Controller
public class IndexAct {
	
	@SuppressWarnings({ "unused", "unchecked" })
	public void index(HttpServletResponse response) throws IOException, TemplateException{

		staticPageSvc.index();
//		Class clz=Product.class;
//    	WebCMSErrors errors=WebCMSErrors.create(Product.class);
//	    if(errors.ifNull(d.getDiscount(),"discount")){
//	    	return errors.showErrorPage(model);
//	    }
		response.sendRedirect("index.html");
	}
	

	@Autowired
	private StaticPageSvc staticPageSvc;



	
}
